import request from '@/config/axios'

export interface MatchmakerMemberStringingVO {
  id: number
  no: string
  matchmakerId: number
  memberId: number
  memberName: string
  stringingNum: number
}

// 查询相亲红娘会员用户牵线总次数列表
export const getMatchmakerMemberStringingPage = async (params) => {
  return await request.get({ url: `/maker/matchmaker-member-stringing/page`, params })
}

// 查询相亲红娘会员用户牵线总次数详情
export const getMatchmakerMemberStringing = async (id: number) => {
  return await request.get({ url: `/maker/matchmaker-member-stringing/get?id=` + id })
}

// 新增相亲红娘会员用户牵线总次数
export const createMatchmakerMemberStringing = async (data: MatchmakerMemberStringingVO) => {
  return await request.post({ url: `/maker/matchmaker-member-stringing/create`, data })
}

// 修改相亲红娘会员用户牵线总次数
export const updateMatchmakerMemberStringing = async (data: MatchmakerMemberStringingVO) => {
  return await request.put({ url: `/maker/matchmaker-member-stringing/update`, data })
}

// 删除相亲红娘会员用户牵线总次数
export const deleteMatchmakerMemberStringing = async (id: number) => {
  return await request.delete({ url: `/maker/matchmaker-member-stringing/delete?id=` + id })
}

// 导出相亲红娘会员用户牵线总次数 Excel
export const exportMatchmakerMemberStringing = async (params) => {
  return await request.download({ url: `/maker/matchmaker-member-stringing/export-excel`, params })
}
